// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Axios from 'axios'

Vue.use(MintUI)

Vue.config.productionTip = false

Vue.prototype.$axios = Axios

export const IS_DEV = process.env.NODE_ENV === 'development'
if (IS_DEV) {
    Vue.prototype.API1 = '/api'
    Vue.prototype.API2 = '/douban'
} else {
    Vue.prototype.API1 = 'http://pv.sohu.com/cityjson'
    Vue.prototype.API2 = 'https://api.douban.com/v2/movie/'
}


/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})